import Vue from 'vue'
import Vuex from 'vuex'
import homeModule from "./home";
import aboutModule from "./about";

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    count:1
  },
  mutations: {
    CHANGE_COUNT(state,newCount){
      state.count = newCount;
    }
  },
  actions: {
    CHANGE_COUNT(content,newCount){
      content.commit("CHANGE_COUNT",newCount)
    }
  },
  modules: {
    homeModule,
    aboutModule
  }
})
